package com.training.spring.model;

import lombok.Data;
import lombok.Getter;

import java.util.Date;

// Data注解:不需要手动写Get/Set方法了,直接自带
// Getter注解:自带Get方法,Set方法不自带,防止数据被修改
@Data
//@Getter
public class MessageInfo {
    private Integer id;
    private String from;
    private String to;
    private String message;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;
    public MessageInfo(String from, String to, String message) {
        this.from = from;
        this.to = to;
        this.message = message;
    }
    public MessageInfo() {
    }
}
